.mainpage .text .element{
    display: inline-block;
    width: 320px;
    border: 1px solid #999;
    border-radius: 10px;
    padding-top: 25px;
    position: relative;
    vertical-align: top;
}

.mainpage .text .level1{
    margin: 10px;

}

.mainpage .text .level1 .element{
    height: initial;
    width: 86%;
    padding-top: 15px;
    margin-left: 7%;
    padding-bottom: 0px;
}

.mainpage .text .level2{
    margin-bottom: 20px;
}

.mainpage .text .level1 .label{
    position: absolute;
    top: -10px;
    background-color: white;
    padding: 0px 5px;
    font-size: 19px;
    margin-left: 15px;
    font-weight: bold;
}

.mainpage .text .level2 .label{
    font-size: 17px;
}

.mainpage .text .links{
    width: 90%;
    position: relative;
    margin-left: 5%;
}

.mainpage .text .links .link{
    width: 100%;

    margin-bottom: 5px;
    text-decoration: underline;
}

.mainpage .text .level1 > .links{
    margin-bottom: 15px;
}